import QtQuick 2.0
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import "CoverFlow"


Page{
    id:root
    title: "Button"

    readonly property url path:AppPath.getPath()


    ListModel{
        id:model
//        ListElement{url:"file:///" + path + "/resource/photo/header/" +"1.jpg"}
//        ListElement{url:"file:///" + path + "/resource/photo/header/" +"2.jpg"}
//        ListElement{url:"file:///" + path + "/resource/photo/header/" +"3.jpg"}
//        ListElement{url:"file:///" + path + "/resource/photo/header/" +"4.jpg"}
//        ListElement{url:"file:///" + path + "/resource/photo/header/" +"5.jpg"}
        Component.onCompleted: {
            for(var i = 1;i<6;i++)
                model.append({"url":"file:///" + path + "/resource/photo/coverFlow/" + i.toString()  +".jpg"})
        }
    }

    CoverFlow{
        anchors.fill:parent
        model:model
    }


}
